package com.springboot.framework.controller.request;

import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author SWF
 * @Date 2019/6/6 15:35
 **/
@Data
public class ProductInsertBean {

    @NotNull(message = "参数错误")
    private Integer shopId;

    @NotNull(message = "参数错误")
    private Integer categoryId;

    @NotEmpty(message = "参数错误")
    private String name;

    @NotNull(message = "参数错误")
    @Max(value = 200 , message = "价格超出最大限制(1~200)")
    @Min(value = 1, message = "价格不能为0")
    private BigDecimal price;
    /**
     * 促销语
     */
    private String promotion;

}
